<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmUsuarioABM.aspx.vb" Inherits="TGB.FrmUsuarioABM" 
    title="Administracion de Usuarios" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <div id="DIV1" style="width: 100%; height: 18px; text-align: right; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Administracion de Usuarios" Font-Underline="False" Height="24px" Font-Names="calibri"></asp:Label></div><hr /> 
    <div style="width: 99%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 720px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 25%; height: 14px;">
                <asp:Label ID="lblNombre" runat="server" Text="Nombre Usuario" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%; height: 14px;" align="left" >
                <asp:TextBox ID="TxtUsuario" runat="server" CssClass="campotxt" MaxLength="10" Font-Bold="True"></asp:TextBox></td>
            <td align="right" style="width: 25%; height: 14px;">
                <asp:Label ID="LblTipo" runat="server" Text="Tipo" Font-Bold="True"></asp:Label></td>
            <td style="height: 14px; width: 31%;" align="left" >
                <asp:DropDownList ID="CboTipoUsuario" runat="server" Width="184px" AppendDataBoundItems="True" CssClass="CampoCbo" Font-Bold="True">
                    <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="width: 25%;">
                <asp:Label ID="LblClave" runat="server" Text="Clave" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%;" align="left" >
                <asp:TextBox ID="TxtClave" runat="server" CssClass="campotxt" MaxLength="8" TextMode="Password" Font-Bold="True"></asp:TextBox></td>
            <td align="right" style="width: 25%;">
                </td>
            <td style="width: 31%;" align="left" >
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%">
                <asp:Label ID="LblConfirma" runat="server" Text="Confirma Clave" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%" align="left" >
                <asp:TextBox ID="TxtConfirma" runat="server" CssClass="campotxt" MaxLength="8" TextMode="Password" Font-Bold="True"></asp:TextBox></td>
            <td align="right" style="width: 25%">
                <asp:Label ID="LblLegajo" runat="server" Text="Legajo" Font-Bold="True"></asp:Label></td>
            <td style="width: 31%" align="left" >
                <asp:DropDownList ID="CboLegajo" runat="server" CssClass="CampoCbo" Width="424px" AppendDataBoundItems="True" Font-Bold="True">
                    <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="height: 21px">
                <asp:LinkButton ID="LinkGuardar" runat="server" ValidationGroup="Guardar" CssClass="BotonLink">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LinkEliminar" runat="server" CssClass="BotonLink">Eliminar</asp:LinkButton> /
                <asp:LinkButton ID="LinkBuscar" runat="server" CssClass="BotonLink">Buscar</asp:LinkButton> /
                <asp:LinkButton ID="LinkCancelar" runat="server" CssClass="BotonLink">Cancelar</asp:LinkButton>
            
            </td>
        </tr>
        
    </table>
        &nbsp;&nbsp;
        <asp:HiddenField ID="HFCodigoUsuario" runat="server" />
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridUsuarios" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC"
            BorderWidth="1px" CellPadding="4" CssClass="tabla"
            ForeColor="Black" GridLines="Horizontal" PageSize="25" Style="width: 100%" Width="812px" BorderStyle="None" CellSpacing="1">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <Columns>
                <asp:TemplateField HeaderText="IdUsuario">
                    <ItemTemplate>
                        &nbsp;<asp:LinkButton ID="LinSeleccionar" runat="server" CommandName="Select" ForeColor="Blue">Ver</asp:LinkButton>
                        <asp:HiddenField ID="HFIdUsuario" runat="server" Value='<%# Bind("IdUsuario") %>' />                        
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Usuario">
                    <ItemTemplate>
                        <asp:Label ID="LblNombre" runat="server" Text='<%# Bind("NombreUsuario") %>'></asp:Label>
                        <asp:HiddenField ID="HFClave" runat="server" Value='<%# Bind("Clave") %>' />                        
                        
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Empleado">
                   <ItemTemplate>
                        <asp:Label ID="LblEmpleado" runat="server" Text='<%# Bind("LegajoNombre") %>'></asp:Label>
                        <asp:HiddenField ID="HFLegajo" runat="server" Value='<%# Bind("Legajo") %>' />                        
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Tipo Usuario">
                     <ItemTemplate>
                        <asp:Label ID="LblDescripcion" runat="server" Text='<%# Bind("TipoUsuario") %>'></asp:Label>
                        <asp:HiddenField ID="HFTipo" runat="server" Value='<%# Bind("idTipoUsuario") %>' />                        
                        
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="#CC3333" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>
</asp:Content>
